<?php /**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme and one of the
 * two required files for a theme (the other being style.css).
 *
 * @subpackage xique
 * @since xique 1.2
 */
get_header(); ?>
<?php get_search_form(); ?>
<div id="container" class="alignleft" role="main">
	<?php if ( have_posts() ) :
		while( have_posts() ) : 
					
         the_post(); 
			get_template_part( 'content', 'excerpt' );
			comments_template( '', false ); 
				         
	     endwhile; ?>
		<div class="page-navigation">
 			<?php do_action( 'xique_set_page_nav' ); ?>
		</div><!-- .navigation -->
	<?php else: ?>
		<div class="post">
			<h1 class="xique-main-header"><?php _e( '万万没想到，竟然他们还没有写文章。', 'xique' ); ?></h1>
			<div class="xique-posts round shadow" role="main">
				<header>
					<h2 class="wrap"><?php _e( '十分对不起，没能找到任何文章', 'xique' ); ?></h2>
				</header>
				<div class="entry">
					<div class="xique-text">
						<p><?php _e( '要不搜索试一下，也许有新发现。', 'xique' ); ?></p>
					</div>	
			
				</div><!-- .entry-content -->
			</div> <!-- .xique-posts -->
		</div> <!-- .post -->
	<?php endif; ?>
</div> <!-- #container -->
<?php get_sidebar();
get_footer(); ?>